<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>往期活动 - 流光小队</title>
    <link rel="stylesheet" href="../../css/style.css">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
    <style>
        .past-section {
            max-width: 1200px;
            margin: 0 auto;
            padding: 40px 20px;
        }

        .past-header {
            text-align: center;
            margin-bottom: 50px;
        }

        .past-header h1 {
            font-size: 2.5em;
            color: #2d3748;
            margin-bottom: 15px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .past-header p {
            font-size: 1.2em;
            color: #718096;
            max-width: 600px;
            margin: 0 auto;
        }

        .past-stats {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 20px;
            margin-bottom: 50px;
        }

        .stat-card {
            background: white;
            border-radius: 12px;
            padding: 25px;
            text-align: center;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
            border: 1px solid #e2e8f0;
        }

        .stat-number {
            font-size: 2.5em;
            font-weight: bold;
            color: #667eea;
            margin-bottom: 10px;
        }

        .stat-label {
            color: #718096;
            font-size: 1.1em;
        }

        .past-filters {
            display: flex;
            justify-content: center;
            gap: 15px;
            margin-bottom: 40px;
            flex-wrap: wrap;
        }

        .filter-btn {
            padding: 12px 24px;
            border: none;
            border-radius: 25px;
            background: #f7fafc;
            color: #718096;
            font-size: 1em;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .filter-btn.active {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
        }

        .filter-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
        }

        .past-timeline {
            position: relative;
            margin-bottom: 50px;
        }

        .timeline-line {
            position: absolute;
            left: 50%;
            top: 0;
            bottom: 0;
            width: 4px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            transform: translateX(-50%);
        }

        .timeline-item {
            position: relative;
            margin-bottom: 40px;
            display: flex;
            align-items: center;
        }

        .timeline-item:nth-child(odd) {
            flex-direction: row;
        }

        .timeline-item:nth-child(even) {
            flex-direction: row-reverse;
        }

        .timeline-content {
            width: 45%;
            background: white;
            border-radius: 16px;
            padding: 25px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
            border: 1px solid #e2e8f0;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .timeline-content:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
        }

        .timeline-dot {
            position: absolute;
            left: 50%;
            top: 50%;
            transform: translate(-50%, -50%);
            width: 20px;
            height: 20px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border-radius: 50%;
            border: 4px solid white;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        }

        .timeline-date {
            position: absolute;
            top: -30px;
            left: 50%;
            transform: translateX(-50%);
            background: #667eea;
            color: white;
            padding: 5px 15px;
            border-radius: 15px;
            font-size: 0.9em;
            font-weight: 600;
        }

        .activity-title {
            font-size: 1.3em;
            font-weight: 600;
            color: #2d3748;
            margin-bottom: 10px;
        }

        .activity-meta {
            display: flex;
            align-items: center;
            gap: 15px;
            margin-bottom: 15px;
            font-size: 0.9em;
            color: #718096;
        }

        .meta-item {
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .meta-item i {
            color: #667eea;
        }

        .activity-description {
            color: #4a5568;
            line-height: 1.6;
            margin-bottom: 20px;
        }

        .activity-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-bottom: 20px;
        }

        .activity-tag {
            background: #f7fafc;
            color: #4a5568;
            padding: 4px 12px;
            border-radius: 15px;
            font-size: 0.85em;
            font-weight: 500;
        }

        .activity-stats {
            display: flex;
            justify-content: space-between;
            padding-top: 15px;
            border-top: 1px solid #e2e8f0;
        }

        .stat-item {
            text-align: center;
        }

        .stat-value {
            font-size: 1.2em;
            font-weight: 600;
            color: #667eea;
        }

        .stat-label {
            font-size: 0.8em;
            color: #718096;
            margin-top: 2px;
        }

        .activity-actions {
            display: flex;
            gap: 10px;
            margin-top: 15px;
        }

        .action-btn {
            flex: 1;
            padding: 10px 15px;
            border: 1px solid #e2e8f0;
            border-radius: 8px;
            background: white;
            color: #4a5568;
            font-size: 0.9em;
            cursor: pointer;
            transition: all 0.3s ease;
            text-align: center;
            text-decoration: none;
        }

        .action-btn:hover {
            background: #667eea;
            color: white;
            border-color: #667eea;
        }

        .action-btn.primary {
            background: #667eea;
            color: white;
            border-color: #667eea;
        }

        .action-btn.primary:hover {
            background: #5a67d8;
        }

        .highlights-section {
            background: #f7fafc;
            border-radius: 16px;
            padding: 40px;
            margin-bottom: 50px;
        }

        .highlights-header {
            text-align: center;
            margin-bottom: 30px;
        }

        .highlights-header h2 {
            font-size: 2em;
            color: #2d3748;
            margin-bottom: 10px;
        }

        .highlights-header p {
            color: #718096;
            font-size: 1.1em;
        }

        .highlights-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 25px;
        }

        .highlight-item {
            background: white;
            border-radius: 12px;
            padding: 25px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
            transition: transform 0.3s ease;
        }

        .highlight-item:hover {
            transform: translateY(-5px);
        }

        .highlight-icon {
            font-size: 3em;
            color: #667eea;
            margin-bottom: 15px;
        }

        .highlight-title {
            font-size: 1.2em;
            font-weight: 600;
            color: #2d3748;
            margin-bottom: 10px;
        }

        .highlight-description {
            color: #718096;
            line-height: 1.5;
            margin-bottom: 15px;
        }

        .highlight-date {
            color: #667eea;
            font-weight: 500;
            font-size: 0.9em;
        }

        @media (max-width: 768px) {
            .past-filters {
                gap: 10px;
            }

            .filter-btn {
                padding: 10px 20px;
                font-size: 0.9em;
            }

            .timeline-line {
                left: 20px;
            }

            .timeline-item {
                flex-direction: row !important;
            }

            .timeline-content {
                width: calc(100% - 60px);
                margin-left: 60px;
            }

            .timeline-dot {
                left: 20px;
            }

            .timeline-date {
                left: 20px;
                transform: none;
            }

            .highlights-grid {
                grid-template-columns: 1fr;
            }
        }
    </style>
</head>
<body>
    <!-- 侧边栏 -->
    <div class="sidebar" id="sidebar">
        <div class="sidebar-header">
            <h3>流光小队</h3>
            <button class="sidebar-toggle" onclick="toggleSidebar()">
                <i class="fas fa-times"></i>
            </button>
        </div>
        <nav class="sidebar-nav">
            <ul>
                <li>
                    <a href="../../index.html">
                        <i class="fas fa-home"></i>
                        首页
                    </a>
                </li>
                <li>
                    <a href="../about/index.html">
                        <i class="fas fa-info-circle"></i>
                        关于我们
                    </a>
                </li>
                
                <!-- 成员相关 -->
                <li>
                    <a href="../members/index.html">
                        <i class="fas fa-users"></i>
                        成员介绍
                    </a>
                </li>
                <li>
                    <a href="../excellent/index.html">
                        <i class="fas fa-star"></i>
                        优秀成员
                    </a>
                </li>
                
                <!-- 活动相关 -->
                <li>
                    <a href="../activities/upcoming.html">
                        <i class="fas fa-calendar-alt"></i>
                        活动预告
                    </a>
                </li>
                <li class="active">
                    <a href="index.html">
                        <i class="fas fa-history"></i>
                        往期活动
                    </a>
                </li>
                <li>
                    <a href="../calendar/index.html">
                        <i class="fas fa-calendar"></i>
                        活动日历
                    </a>
                </li>
                
                <!-- 成果与资源 -->
                <li>
                    <a href="../achievements/index.html">
                        <i class="fas fa-trophy"></i>
                        小组成果
                    </a>
                </li>
                <li>
                    <a href="../resources/index.html">
                        <i class="fas fa-book"></i>
                        学习资料
                    </a>
                </li>
                <li>
                    <a href="../resources/shares.html">
                        <i class="fas fa-share-alt"></i>
                        成员分享
                    </a>
                </li>
                
                <!-- 互动与讨论 -->
                <li>
                    <a href="../interaction/index.html">
                        <i class="fas fa-comments"></i>
                        互动交流
                    </a>
                </li>
                
                <!-- 加入与联系 -->
                <li>
                    <a href="../join/index.html">
                        <i class="fas fa-user-plus"></i>
                        加入我们
                    </a>
                </li>
                <li>
                    <a href="../contact/index.html">
                        <i class="fas fa-address-book"></i>
                        联系方式
                    </a>
                </li>
                
                <!-- 其他扩展 -->
                <li>
                    <a href="../partners/index.html">
                        <i class="fas fa-handshake"></i>
                        合作伙伴
                    </a>
                </li>
                <li>
                    <a href="../faq/index.html">
                        <i class="fas fa-question-circle"></i>
                        常见问题
                    </a>
                </li>
            </ul>
        </nav>
    </div>

    <!-- 主内容区域 -->
    <div class="main-content">
        <!-- 顶部导航栏 -->
        <div class="topbar">
            <div class="topbar-left">
                <button class="menu-toggle" onclick="toggleSidebar()">
                    <i class="fas fa-bars"></i>
                </button>
                <h1>往期活动</h1>
            </div>
        </div>

        <!-- 内容区域 -->
        <div class="content">
            <div class="past-section">
                <!-- 页面标题 -->
                <div class="past-header">
                    <h1>往期活动</h1>
                    <p>回顾团队历史活动，重温精彩瞬间</p>
                </div>

                <!-- 活动统计 -->
                <div class="past-stats">
                    <div class="stat-card">
                        <div class="stat-number">50+</div>
                        <div class="stat-label">举办活动</div>
                    </div>
                    <div class="stat-card">
                        <div class="stat-number">1000+</div>
                        <div class="stat-label">参与人次</div>
                    </div>
                    <div class="stat-card">
                        <div class="stat-number">15+</div>
                        <div class="stat-label">合作机构</div>
                    </div>
                    <div class="stat-card">
                        <div class="stat-number">3+</div>
                        <div class="stat-label">活动年数</div>
                    </div>
                </div>

                <!-- 筛选按钮 -->
                <div class="past-filters">
                    <button class="filter-btn active" onclick="filterActivities('all')" data-filter="all">
                        <i class="fas fa-th"></i> 全部活动
                    </button>
                    <button class="filter-btn" onclick="filterActivities('tech')" data-filter="tech">
                        <i class="fas fa-code"></i> 技术活动
                    </button>
                    <button class="filter-btn" onclick="filterActivities('workshop')" data-filter="workshop">
                        <i class="fas fa-tools"></i> 工作坊
                    </button>
                    <button class="filter-btn" onclick="filterActivities('competition')" data-filter="competition">
                        <i class="fas fa-trophy"></i> 竞赛活动
                    </button>
                    <button class="filter-btn" onclick="filterActivities('social')" data-filter="social">
                        <i class="fas fa-users"></i> 社交活动
                    </button>
                </div>

                <!-- 活动时间线 -->
                <div class="past-timeline">
                    <div class="timeline-line"></div>
                    <div id="timelineContainer">
                        <!-- 时间线项目将通过JavaScript动态生成 -->
                    </div>
                </div>

                <!-- 精彩回顾 -->
                <div class="highlights-section">
                    <div class="highlights-header">
                        <h2><i class="fas fa-star"></i> 精彩回顾</h2>
                        <p>团队活动中的精彩瞬间和重要里程碑</p>
                    </div>
                    <div class="highlights-grid">
                        <div class="highlight-item">
                            <div class="highlight-icon">🏆</div>
                            <div class="highlight-title">全国大赛夺冠</div>
                            <div class="highlight-description">团队在全国大学生创新创业大赛中获得一等奖，展现了强大的技术实力和创新能力。</div>
                            <div class="highlight-date">2023年12月</div>
                        </div>
                        <div class="highlight-item">
                            <div class="highlight-icon">🎓</div>
                            <div class="highlight-title">技术分享会</div>
                            <div class="highlight-description">举办大型技术分享会，邀请行业专家进行技术交流，提升团队技术水平。</div>
                            <div class="highlight-date">2023年10月</div>
                        </div>
                        <div class="highlight-item">
                            <div class="highlight-icon">🤝</div>
                            <div class="highlight-title">校企合作</div>
                            <div class="highlight-description">与多家知名企业建立合作关系，为学生提供实习和就业机会。</div>
                            <div class="highlight-date">2023年8月</div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <script>
        // 往期活动数据
        const pastActivities = [
            {
                id: 1,
                title: "2023年技术分享大会",
                category: "tech",
                date: "2023-12-15",
                location: "学术报告厅",
                participants: 200,
                description: "年度技术分享大会，邀请行业专家分享最新技术趋势，团队成员展示项目成果。",
                tags: ["技术分享", "专家讲座", "项目展示"],
                stats: { participants: 200, duration: "6小时", satisfaction: 95 }
            },
            {
                id: 2,
                title: "机器学习工作坊",
                category: "workshop",
                date: "2023-11-20",
                location: "实验室A",
                participants: 50,
                description: "深度学习实战工作坊，从理论到实践，手把手教授机器学习技术。",
                tags: ["机器学习", "深度学习", "实战"],
                stats: { participants: 50, duration: "8小时", satisfaction: 92 }
            },
            {
                id: 3,
                title: "ACM程序设计竞赛",
                category: "competition",
                date: "2023-10-08",
                location: "计算机学院",
                participants: 30,
                description: "校内ACM程序设计竞赛，选拔优秀选手参加省级比赛。",
                tags: ["算法竞赛", "ACM", "选拔赛"],
                stats: { participants: 30, duration: "5小时", satisfaction: 88 }
            },
            {
                id: 4,
                title: "团队建设活动",
                category: "social",
                date: "2023-09-15",
                location: "户外基地",
                participants: 80,
                description: "户外团队建设活动，增强团队凝聚力，促进成员间交流。",
                tags: ["团队建设", "户外活动", "凝聚力"],
                stats: { participants: 80, duration: "12小时", satisfaction: 96 }
            },
            {
                id: 5,
                title: "前端技术研讨会",
                category: "tech",
                date: "2023-08-25",
                location: "会议室B",
                participants: 40,
                description: "前端技术发展趋势研讨会，讨论React、Vue等框架的应用。",
                tags: ["前端技术", "React", "Vue"],
                stats: { participants: 40, duration: "4小时", satisfaction: 90 }
            },
            {
                id: 6,
                title: "创新创业大赛",
                category: "competition",
                date: "2023-07-10",
                location: "创业中心",
                participants: 25,
                description: "校内创新创业大赛，展示学生创新项目，评选优秀作品。",
                tags: ["创新创业", "项目展示", "评选"],
                stats: { participants: 25, duration: "6小时", satisfaction: 94 }
            }
        ];

        let currentFilter = 'all';

        function toggleSidebar() {
            const sidebar = document.getElementById('sidebar');
            sidebar.classList.toggle('open');
        }

        function filterActivities(filter) {
            currentFilter = filter;
            
            // 更新筛选按钮状态
            document.querySelectorAll('.filter-btn').forEach(btn => {
                btn.classList.remove('active');
            });
            document.querySelector(`[data-filter="${filter}"]`).classList.add('active');
            
            // 重新渲染时间线
            renderTimeline();
        }

        function renderTimeline() {
            const container = document.getElementById('timelineContainer');
            const filteredActivities = currentFilter === 'all' 
                ? pastActivities 
                : pastActivities.filter(activity => activity.category === currentFilter);
            
            container.innerHTML = filteredActivities.map((activity, index) => `
                <div class="timeline-item">
                    <div class="timeline-date">${activity.date}</div>
                    <div class="timeline-dot"></div>
                    <div class="timeline-content">
                        <div class="activity-title">${activity.title}</div>
                        <div class="activity-meta">
                            <div class="meta-item">
                                <i class="fas fa-map-marker-alt"></i>
                                <span>${activity.location}</span>
                            </div>
                            <div class="meta-item">
                                <i class="fas fa-users"></i>
                                <span>${activity.participants}人参与</span>
                            </div>
                        </div>
                        <div class="activity-description">${activity.description}</div>
                        <div class="activity-tags">
                            ${activity.tags.map(tag => `<span class="activity-tag">${tag}</span>`).join('')}
                        </div>
                        <div class="activity-stats">
                            <div class="stat-item">
                                <div class="stat-value">${activity.stats.participants}</div>
                                <div class="stat-label">参与人数</div>
                            </div>
                            <div class="stat-item">
                                <div class="stat-value">${activity.stats.duration}</div>
                                <div class="stat-label">活动时长</div>
                            </div>
                            <div class="stat-item">
                                <div class="stat-value">${activity.stats.satisfaction}%</div>
                                <div class="stat-label">满意度</div>
                            </div>
                        </div>
                        <div class="activity-actions">
                            <button class="action-btn" onclick="showActivityDetail(${activity.id})">
                                <i class="fas fa-eye"></i> 详情
                            </button>
                            <button class="action-btn primary" onclick="viewActivityPhotos(${activity.id})">
                                <i class="fas fa-images"></i> 照片
                            </button>
                        </div>
                    </div>
                </div>
            `).join('');
        }

        function showActivityDetail(id) {
            const activity = pastActivities.find(a => a.id === id);
            if (activity) {
                const detailText = `
📅 活动详情

标题：${activity.title}
日期：${activity.date}
地点：${activity.location}
参与人数：${activity.participants}人

📝 描述：
${activity.description}

🏷️ 标签：
${activity.tags.join('、')}

📊 统计：
• 参与人数：${activity.stats.participants}人
• 活动时长：${activity.stats.duration}
• 满意度：${activity.stats.satisfaction}%
                `;
                alert(detailText);
            }
        }

        function viewActivityPhotos(id) {
            const activity = pastActivities.find(a => a.id === id);
            if (activity) {
                alert(`查看"${activity.title}"的照片：\n\n📸 照片链接：https://example.com/activity/${id}/photos\n\n💡 提示：包含活动精彩瞬间和合影留念`);
            }
        }

        // 页面加载完成后初始化
        document.addEventListener('DOMContentLoaded', function() {
            renderTimeline();
            
            // 设置当前页面的导航项为激活状态
            document.querySelectorAll('.sidebar-nav li').forEach(li => {
                li.classList.remove('active');
            });
            document.querySelector('.sidebar-nav li:nth-child(6)').classList.add('active');
        });
    </script>
</body>
</html> 